package com.ahy231.service;

import com.ahy231.entity.News;
import com.github.pagehelper.PageInfo;

/**
 * @author ahy231
 * @date 2022/3/1 9:37
 * @description
 */
public interface NewsService {
    /**
     * 获取新闻
     * @param pageSize 页面大小
     * @param pageNum 页号
     */
    PageInfo<News> getNews(Integer pageSize, Integer pageNum);
}
